package vip.specimen.system.datasource.validation;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/8 14:52
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Setter
@Getter
public class SystemSaveConfigQiNiuValidation extends SystemSaveConfigValidation {
    @NotBlank(message = "请填写空间名称")
    private String qiNiuSaveName;
    @Pattern(regexp = "^(http|https)://[a-zA-Z].*[a-zA-Z]$", message = "访问域名需以字母为开始与结尾")
    @NotBlank(message = "请填写访问域名")
    private String qiNiuDomain;
    @NotBlank(message = "请填写AccessKey")
    @Length(max = 64, message = "AccessKey最大为64为")
    private String qiNiuAccessKey;
    @NotBlank(message = "请填写SecretKey")
    @Length(max = 64, message = "SecretKey最大为64为")
    private String qiNiuSecretKey;
}
